﻿<?php
	function verMas($cadena,$cantidad){
		if(strlen($cadena) > $cantidad)
			return substr($cadena,0,$cantidad)."...";
		else
			return $cadena;
	}
?>
<!DOCTYPE html>
<!-- saved from url=(0042)#/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
	<?php 
	$this->load->helper('url');?>

    <title>Hotel Las Palmeras | San Juan de Colón</title>

    <!-- Bootstrap core CSS -->
   	<link rel="shortcut icon" href="<?php echo base_url('web/favicon.ico')?>" />

    <link href="<?php echo base_url('web/css/bootstrap.css')?>" rel="stylesheet">
	 <link href="<?php echo base_url('web/css/bootstrap-datetimepicker.min.css')?>" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->

    <!-- Custom styles for this template -->
<!--
    <link href='http://fonts.googleapis.com/css?family=Bubbler+One' rel='stylesheet' type='text/css'>
-->
    <link href="<?php echo base_url('web/css/carousel.css')?>" rel="stylesheet">
    <link href="<?php echo base_url('web/css/laspalmeras.css')?>" rel="stylesheet">
<!--
  <style id="holderjs-style" type="text/css">.holderjs-fluid {font-size:16px;font-weight:bold;text-align:center;font-family:sans-serif;margin:0}</style><style type="text/css" style="display: none !important;">object:not([type]),object[classid$=":D27CDB6E-AE6D-11cf-96B8-444553540000"],object[classid$=":d27cdb6e-ae6d-11cf-96b8-444553540000"],object[codebase*="swflash.cab"],object[data*=".swf"],embed[type="application/x-shockwave-flash"],embed[src*=".swf"],object[type="application/x-shockwave-flash"],object[src*=".swf"],object[codetype="application/x-shockwave-flash"],iframe[type="application/x-shockwave-flash"],object[classid$=":166B1BCA-3F9C-11CF-8075-444553540000"],object[codebase*="sw.cab"],object[data*=".dcr"],embed[type="application/x-director"],embed[src*=".dcr"],object[type="application/x-director"],object[src*=".dcr"],object[classid$=":15B782AF-55D8-11D1-B477-006097098764"],object[codebase*="awswaxf.cab"],object[data*=".aam"],embed[type="application/x-authorware-map"],embed[src*=".aam"],object[type="application/x-authorware-map"],object[src*=".aam"],object[classid*="32C73088-76AE-40F7-AC40-81F62CB2C1DA"],object[type="application/ag-plugin"],object[type="application/x-silverlight"],object[type="application/x-silverlight-2"],object[source*=".xaml"],object[sourceelement*="xaml"],embed[type="application/ag-plugin"],embed[source*=".xaml"]{display: none !important;}</style>
-->
  
  </head>

<script src="<?php echo base_url('web/rsrc/jquery.js')?>"></script>
    <script src="<?php echo base_url('web/rsrc/bootstrap.min.js')?>"></script>
<script src="<?php echo base_url('web/rsrc/bootstrap-datetimepicker.min')?>"></script>
    <script src="<?php echo base_url('web/rsrc/holder.js')?>"></script>
<!-- NAVBAR
================================================== -->
  <body style="">
    

 <!-- Carousel
    ================================================== -->
    <div id="myCarousel" class="container carousel slide" style="padding:0">
      <!-- Indicators -->
      <ol class="carousel-indicators">
        <li data-target="#" data-slide-to="0" class="active"></li>
        <li data-target="#" data-slide-to="1" class=""></li>
        <li data-target="#" data-slide-to="2" class=""></li>
        <li data-target="#" data-slide-to="3" class=""></li>
        <li data-target="#" data-slide-to="4" class=""></li>
        <li data-target="#" data-slide-to="5" class=""></li>
        <li data-target="#" data-slide-to="6" class=""></li>
        <li data-target="#" data-slide-to="7" class=""></li>
      </ol>
      <div class="carousel-inner">
        <div class="item active">
          <img src="<?php echo base_url('web/img/slider1.jpg')?>" alt="slide">
          <div class="carousel-caption">
            <img src="<?php echo base_url('web/img/logo230p.png')?>" alt="">
          </div>
        </div>
        <div class="item">
          <img src="<?php echo base_url('web/img/slider2.jpg')?>" alt="slide">
          <div class="carousel-caption">
            <img src="<?php echo base_url('web/img/logo230p.png')?>" alt="">
          </div>
        </div>
        <div class="item">
          <img src="<?php echo base_url('web/img/slider3.jpg')?>" alt="slide">
          <div class="carousel-caption">
            <img src="<?php echo base_url('web/img/logo230p.png')?>" alt="">
          </div>
        </div>
        <div class="item">
          <img src="<?php echo base_url('web/img/slider4.jpg')?>" alt="slide">
          <div class="carousel-caption">
            <img src="<?php echo base_url('web/img/logo230p.png')?>" alt="">
          </div>
        </div>
        <div class="item">
          <img src="<?php echo base_url('web/img/slider5.jpg')?>" alt="slide">
          <div class="carousel-caption">
            <img src="<?php echo base_url('web/img/logo230p.png')?>" alt="">
          </div>
        </div>
        <div class="item">
          <img src="<?php echo base_url('web/img/slider6.jpg')?>" alt="slide">
          <div class="carousel-caption">
            <img src="<?php echo base_url('web/img/logo230p.png')?>" alt="">
          </div>
        </div>
        <div class="item">
          <img src="<?php echo base_url('web/img/slider7.jpg')?>" alt="slide">
          <div class="carousel-caption">
            <img src="<?php echo base_url('web/img/logo230p.png')?>" alt="">
          </div>
        </div>
        <div class="item">
          <img src="<?php echo base_url('web/img/slider8.jpg')?>" alt="slide">
          <div class="carousel-caption">
            <img src="<?php echo base_url('web/img/logo230p.png')?>" alt="">
          </div>
        </div>
        
      </div>
      <a class="left carousel-control" href="#/#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
      <a class="right carousel-control" href="#/#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
    </div><!-- /.carousel -->
<div class="container all">
	<div class="navbar-wrapper">
      

        <div class="navbar navbar-inverse navbar-static-top">
          <div class="container">
            <div class="navbar-collapse collapse">
              <ul class="nav navbar-nav">
                <li class="active"><a href="index.html">Inicio</a></li>
                <li><a href="laspalmeras.html">Las Palmeras</a></li>
                <li><a href="habitaciones.html">Habitaciones</a></li>
                <li><a href="servicios.html">Servicios</a></li>
                <li><a href="construccion.html">Reservaciones</a></li>
                <li><a href="construccion.html">Iniciativas</a></li>
                <li><a href="galeria.html">Galerías</a></li>
                <li><a href="construccion.html">Contacto</a></li>
                <li><a href="http://www.corpoandes.gov.ve/">CORPOANDES</a></li>
              </ul>
            </div>
          </div>
        </div>

      
    </div>

    <!-- Marketing messaging and featurettes
    ================================================== -->
    <!-- Wrap the rest of the page in another container to center all the content. -->

    <div class="container marketing">

      <div class="row featurette">
        <div class="col-md-8 content">
          <h2 class="">Administracion</h2>
			<div class="btn-group">
			<a href="<?php echo base_url('index.php/ReservaHab/');?>" class="btn btn-success btn-lg" >Reservas por Aprobar</a>
			<a href="<?php echo base_url('index.php/ReservaHab/aprobadas');?>"  class="btn btn-success btn-lg" >Reservas Aprobadas</a>
		</div>	
		<hr />
<?php // if($mensaje!=NULL){?>
<!-- <div class="alert <?php //echo $accion; ?>"><button type="button" class="close" data-dismiss="alert">&times;</button><?php //echo $mensaje; ?></div> -->
<?php //}?>
<?php if (count($reservaHab)>0){?>
		<div>
			<table class="table table-striped">
			  <thead>
				<tr>
					<th>Ver</th>
				    <th>Nombre Cliente</th>
				    <th>RIF Cliente</th>
				    <th>Fecha de Entrada</th>
				</tr>
			  </thead>
			  <tbody>

			<?php for ($i=0;$i<count($reservaHab);$i++){?>			
				<tr>
					<td><?php echo "<a href=\"#\" data-toggle=\"modal\" data-target=\"#myModal$i\" ><span class=\"glyphicon glyphicon-plus-sign\"></span></a>"?></td>
			  	    <td><?php echo $reservaHab[$i]->nombre_Cliente;?></td>
				    <td><?php echo $reservaHab[$i]->RIF_Cliente;?></td>
					<td><?php echo $reservaHab[$i]->fecha_IN;?></td></a>
				  </tr>
				  <!-- Modal -->
<div class="modal fade" id="myModal<?php echo $i;?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h2 class="modal-title" id="myModalLabel">ID:<?php echo $reservaHab[$i]->id;?></h2>
      </div>
     
<?php

setlocale(LC_ALL, "es_ES");?>
<span class="glyphicon glyphicon-user"></span> <strong>Cliente: </strong><?php echo $reservaHab[$i]->nombre_Cliente;?></br>
<span class="glyphicon glyphicon-credit-card"></span> <strong>RIF: </strong><?php echo $reservaHab[$i]->RIF_Cliente;?></br>
<span class="glyphicon glyphicon-log-in"></span> <strong>Fecha de Entrada: </strong><?php echo $reservaHab[$i]->fecha_IN;?> </br>
<span class="glyphicon glyphicon-log-out"></span> <strong>Fecha de Salida: </strong><?php echo $reservaHab[$i]->fecha_OUT;?> </br>
<strong>Hab. Sencillas: </strong><?php echo $reservaHab[$i]->cant_S;?> </br>
<strong>Hab. Dobles: </strong><?php echo $reservaHab[$i]->cant_D;?> </br>
<strong>Hab. Triples: </strong><?php echo $reservaHab[$i]->cant_T;?> </br>
<strong>Cant. Huespedes: </strong><?php echo $reservaHab[$i]->huespedes;?> </br>

    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
				  
				<?php } ?>
			  </tbody>
			</table>

</div><?php } else { echo "No hay reservas pendientes..."; }?>
     </div>


        <div class="col-md-4 sidebar">
			<div class="little">
				<h2>Nuestras redes sociales</h2>
			
				<a href="https://www.facebook.com/pages/Hotel-Las-Palmeras/431360913642125"><img class="img-responsive" src="<?php echo base_url('web/img/redes_fb.png')?>" /></a>
				<a href="http://www.twitter.com/laspalmerashtel"><img class="img-responsive" src="<?php echo base_url('web/img/redes_tw.png')?>" /></a>
			</div>
			
			<div class="little">
				

				
			</div>
			<div class="little">
				<h2>El clima</h2>
				
			  <!-- www.TuTiempo.net - Ancho:293px - Alto:102px -->
				<div id="TT_tCYwrBdxt2dr242A7AzDDzjzDsuALfEFLYkYEciIakD3lm2ml"><strong><a href="http://www.tutiempo.net">Meteorología</a></strong>
				<a href="http://www.tutiempo.net/san-juan-de-colon.html">El tiempo en San Juan de Colón</a></div>
				<script type="text/javascript" src="http://www.tutiempo.net/widget/eltiempo_tCYwrBdxt2dr242A7AzDDzjzDsuALfEFLYkYEciIakD3lm2ml"></script>
			</div>
        </div>
      </div>

      <!-- /END THE FEATURETTES -->


      
    </div><!-- /.container -->
	<!-- FOOTER -->
	<footer class="container copyright">Diseñado y desarrollado por <a href="http://www.katanoia.com">Grupo Katanoia</a></footer>
</div>



    
    

</body></html>




